﻿using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Yes.Application.User;
using Yes.Domain.Context;

namespace Yes.Web.Blog.Areas.Admin.Controllers
{
    [Area("Admin")]
    public class PartialController : BaseController
    {
      
        private IUserContext _userContext;
        public PartialController(IUserContext userContext)
        {
            _userContext = userContext;
        }


 
        public PartialViewResult Head()
        {

            return PartialView("_Head", _userContext.CurrentUser);
        }

    }
}